<script>
	// import VConsole from 'vconsole';
	// const vConsole = new VConsole({ theme: 'light' });
	export default {
		onLaunch: function(option) {
			// #ifdef MP-ALIPAY
			console.log(option)
			if(option.query)	{
				if (option.query.a) {
					my.setStorageSync({
						key: 'a',
						data: option.query.a
					})
				}
				if (option.query.param) {
					my.setStorageSync({
						key: 'a',
						data: option.query.param
					})
				}	
				}
			
				my.setVisualEffectOnCapture({
					visualEffect: 'hidden',
					success: res => {
						console.log(res);
					},
					
					fail: error => {
						console.log(error);
					},
				})
			// #endif
	

		},
		onShow: function() {

			console.log('App Show');
		},
		onHide: function() {
			console.log('App Hide');
		}
	};
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
	@import './styles/demo';

	page {
		height: 100%;
	}
</style>